package com.qf.test;

import com.qf.dao.impl.WeatherDaoImpl;
import com.qf.dao.impl.WeatherDaoImplService;

import java.util.Map;

/**
 * 2019/11/27
 * Administrator
 * webClient001
 * 面向对象面向君  不负代码不负卿
 */

public class Demo1 {
    public static void main(String[] args) {
        //1.创建服务对象 ,取值来源于service标签中的name值
        WeatherDaoImplService service=new WeatherDaoImplService();
        //2.创建服务器端的对应的接口类型的对象
        WeatherDaoImpl port = service.getPort(WeatherDaoImpl.class);
        //3.调用方法
        String s = port.getweather("南京");
        System.out.println(s);
    }
}
